//package yyy.ab.modules.security.controller;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.http.HttpStatus;
//import org.springframework.http.MediaType;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//import org.springframework.web.bind.annotation.ResponseStatus;
//import org.springframework.web.servlet.View;
//import org.springframework.web.servlet.view.RedirectView;
//import yyy.ab.common.core.ResultBean;
//
//import javax.servlet.http.HttpServletRequest;
//
///**
// * session失效控制器
// **/
//@Slf4j
//@Controller
//@RequestMapping("/session-invalid")
//public class SessionInvalidController {
//
//    @RequestMapping(produces = MediaType.TEXT_HTML_VALUE)
//    public View sessionInvalidPage(HttpServletRequest request) {
//        log.info(request.getRequestURI());
//        log.info(request.getHeader("Refer"));
//        return new RedirectView("/dashboard", true);
//    }
//
//    @ResponseBody
//    @RequestMapping
//    @ResponseStatus(HttpStatus.FORBIDDEN)
//    public ResultBean sessionInvalid() {
//        return ResultBean.errorMsg("会话已失效");
//    }
//
//}
